﻿using System.Web.Mvc;
using System.Web.Routing;
using Zen.Barcode.Web;

namespace Super.Web.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default",
                "Admin/{controller}/{action}/{id}",
                new { controller="Index", action = "Index", id = UrlParameter.Optional }
            );

            context.Routes.Add(
				"BarcodeImaging",
				new Route(
					"Barcode/{id}",
					new BarcodeImageRouteHandler()));
            //routes.Add(
            //    "BarcodeImaging",
            //    new Route(
            //        "Barcode/{id}",
            //        new BarcodeImageRouteHandler()));
        }
    }
}
